package _22define;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class Demo2 {
    public static void main(String[] args) throws IOException {
        FileInputStream in=new FileInputStream("src/note/a.txt");
        byte[] bytes = new byte[4];
        int readCount = in.read(bytes);
        System.out.println(readCount);
        System.out.println(new String(bytes));

        int readCount2 = in.read(bytes);
        System.out.println(readCount2);
        System.out.println(new String(bytes));

        int readCount3 = in.read(bytes);
        System.out.println(readCount3);

        in.close();

    }
}
